#include "Book.h"
#include <iostream>

using namespace std;

Book::Book()
{
	m_isbn = " ";
	m_author = " ";
	m_nameBook = " ";
	m_number = 0;
}

//Book::Book(char * cIsbn, char * cAuthor, char * cName, DateOfPub dateOfPub, int iNumber)
//{
//	m_isbn = cIsbn;
//	m_author = cAuthor;
//	m_nameBook = cName;
//	m_dateOfPub = dateOfPub;
//	m_number = iNumber;
//}

Book::Book(char * cIsbn, char * cAuthor, char * cName, int iNumber)
{
	m_isbn = cIsbn;
	m_author = cAuthor;
	m_nameBook = cName;
	m_number = iNumber;
}

void Book::PrintfBook()
{
	cout<<"Isbn: "<<m_isbn<<endl;
	cout<<"Author: "<<m_author<<endl;
	cout<<"Name: "<<m_nameBook<<endl;
	//m_dateOfPub.PrinfDateOfPub();cout<<"\n";
	cout<<"Quantity: "<<m_number<<endl;

}

char * Book::getIsbn()
{
	return m_isbn;
}

char * Book::getAuthor()
{
	return m_author;
}

char * Book::getName()
{
	return m_nameBook;
}

int Book::getNumber()
{
	return m_number;
}

void Book::setIsbn(char * cIsbn)
{
	m_isbn = cIsbn;
}

void Book::setAuthor(char * cAuthor)
{
	m_author = cAuthor;
}

void Book::setName(char * cNameBook)
{
	m_nameBook = cNameBook;
}

void Book::setNumber(int iNumber)
{
	m_number = iNumber;
}
